libxl: nic type defaults to vif in hotplug for hvm guest
authorWei Liu <wei.liu2@citrix.com>
Fri, 20 May 2016 17:16:05 +0000 (18:16 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 23 May 2016 13:46:34 +0000 (14:46 +0100)
commit32e9d0f065b78e42c4a5f7aba8bae153d465749a
treef3f83e45c04f78a5493321502e112eccdc8a07e8
parent779511f4bf5ae34820a85e4eb20d50c60f69e977
libxl: nic type defaults to vif in hotplug for hvm guest

We don't support plugging in emulated nic to a HVM guest.

The "update_json" flag is only set when doing hotplug, so use that as an
indicator in libxl__device_nic_add. The new hotplug flag to _setdefault
function should be false in all other locations.

This then requires saving nic type in JSON file, because we don't want
the receiving end to recalculate the nic type.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_create.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h